﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BLL
{
    public class Message : IBLL.IMessage
    {
        private static readonly IDAL.IMessage dal = DALFactory.DataAccess.CreateMessage();

        public IOrderedQueryable GetReceiveMessages(string userName)
        {
            return dal.GetReceiveMessages(userName);
        }

        public IOrderedQueryable GetSentMessages(string userName)
        {
            return dal.GetSentMessages(userName);
        }

        public DataMode.message GetMessageByMessageID(int messageID)
        {
            return dal.GetMessageByMessageID(messageID);
        }
    }
}
